import {
	ajax
} from "../utils/request.js"

//售后列表
export function get_refund_list(data) {
	return ajax({
		url: `api.php?m=Api&c=OrderRefund&a=refundList`,
		method: 'POST',
		data
	})
}

// 售后商品信息
export function get_goods(data) {
	return ajax({
		url: `api.php?m=Api&c=OrderRefund&a=applyAfterSale`,
		method: 'POST',
		data
	})
}

// 申请商品售后
export function post_add_refund(data) {
	return ajax({
		url: `api.php?m=Api&c=OrderRefund&a=submitRefund`,
		method: 'POST',
		data
	})
}

// 售后详情
export function get_refund_detail(order_refund_id) {
	return ajax({
		url: `api.php?m=Api&c=OrderRefund&a=refundDetail`,
		method: 'POST',
		data: {
			order_refund_id
		}
	})
}